home *** CD-ROM | disk | FTP | other *** search
/ SVM Mac 58 / CD-ROM N°58.iso / navigateurs / Netscape Folder / chrome / navigator / content / default / NavSecurityUI.js < prev    next >
Encoding:
Text File  |  2000-04-19  |  1.1 KB  |  37 lines  |  [TEXT/MOSS]

  1. /*
  2.  * CONFIDENTIAL AND PROPRIETARY SOURCE CODE
  3.  * OF NETSCAPE COMMUNICATIONS CORPORATION
  4.  *
  5.  * Copyright (c) 1998, 1999 Netscape Communications Corporation.
  6.  * All Rights Reserved.
  7.  *
  8.  * Use of this Source Code is subject to the terms of the applicable
  9.  * license agreement from Netscape Communications Corporation.
  10.  *
  11.  * The copyright notice(s) in this Source Code does not indicate actual
  12.  * or intended publication of this Source Code.
  13.  */
  14.  
  15. window.addEventListener("load", SetSecurityButton, false);
  16.  
  17. function SetSecurityButton()
  18. {
  19.     dump("in SetSecurityButton\n");
  20.  
  21.     var ui = Components.classes["component://netscape/secure_browser_ui"].getService();
  22.     ui = ui.QueryInterface(Components.interfaces.nsSecureBrowserUI);
  23.  
  24.     var button  = document.getElementById('security-button');
  25.     if (button && window.content)
  26.         ui.init(window.content, button);
  27. }
  28.  
  29. function displayPageInfo()
  30. {
  31.     var psm = Components.classes["component://netscape/psm"].getService();
  32.     psm = psm.QueryInterface(Components.interfaces.nsIPSMComponent);
  33.     psm.DisplaySecurityAdvisor( null );
  34. }
  35.  
  36.  
  37.